import service from '/@/utils/request';

//文章分类列表
export function artuclecateGoryList(current:number,limit:number,rolename:String) {
	return service({
		url: `/admin/article/list/${current}/${limit}`,
		method: 'post',
		data:{rolename}
	});
}
//添加
export function Add(data:Object) {
	return service({
		url: `/admin/article/add`,
		method: 'post',
		data
		
	});
}

//删除
export function  Del(id: String |Number){
	return service({
		url: `/admin/article/del/${id}`,
		method: 'GET',
	});
}
//修改
export function  Update(data:Object){
	return service({
		url: `/admin/article/update`,
		method: 'post',
		data
	});
}